package com.joysuch.wwyt.bp.bean.investigate;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @Author ZhangDong
 * @Date 2020/12/2 13:55
 */
@Data
public class BpSafeTableBean {

    @ApiModelProperty("主键id-修改时传值")
    private Long id;
    @ApiModelProperty("排查表类型")
    @NotNull(message = "排查表类型不能为空")
    private Long typeId;
    @ApiModelProperty("排查表名称")
    @NotEmpty(message = "排查表名称不能为空")
    private String tableName;
    @ApiModelProperty("责任部门")
    private Long dutyDepartId;
    @ApiModelProperty("检查项目集合")
    @Valid
    private List<BpSafeTableItemBean> itemList;

}
